package project.taobao.microsoft.transaction.provider.one.service.impl;

import org.springframework.stereotype.Service;
import project.taobao.microsoft.transaction.api.pojo.OrderItem;
import project.taobao.microsoft.transaction.api.pojo.OrderItemExample;
import project.taobao.microsoft.transaction.provider.one.dao.OrderItemMapper;
import project.taobao.microsoft.transaction.provider.one.service.OrderItemService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author yhq
 * @date 2020/8/26 10:32
 */
@Service
public class OrderItemServiceImpl implements OrderItemService {
    @Resource
    private OrderItemMapper orderItemMapper;

    // methods
    @Override
    public long countByExample(OrderItemExample example) {
        return this.orderItemMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(OrderItemExample example) {
        return this.orderItemMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return this.orderItemMapper.deleteByPrimaryKey(id);
    }

    @Override
    public synchronized int insert(OrderItem record) {
        return this.orderItemMapper.insert(record);
    }

    @Override
    public OrderItem insertWithReturn(OrderItem record) {
        return this.orderItemMapper.insertWithReturn(record);
    }

    @Override
    public int insertSelective(OrderItem record) {
        return this.orderItemMapper.insertSelective(record);
    }

    @Override
    public List<OrderItem> selectByExampleWithBLOBs(OrderItemExample example) {
        return this.orderItemMapper.selectByExampleWithBLOBs(example);
    }

    @Override
    public List<OrderItem> selectByExample(OrderItemExample example) {
        return this.orderItemMapper.selectByExample(example);
    }

    @Override
    public OrderItem selectByPrimaryKey(Long id) {
        return this.orderItemMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(OrderItem record, OrderItemExample example) {
        return this.orderItemMapper.updateByExampleSelective(record, example);
    }

    @Override
    public int updateByExampleWithBLOBs(OrderItem record, OrderItemExample example) {
        return this.orderItemMapper.updateByExampleWithBLOBs(record, example);
    }

    @Override
    public int updateByExample(OrderItem record, OrderItemExample example) {
        return this.orderItemMapper.updateByExample(record, example);
    }

    @Override
    public int updateByPrimaryKeySelective(OrderItem record) {
        return this.orderItemMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKeyWithBLOBs(OrderItem record) {
        return this.orderItemMapper.updateByPrimaryKeyWithBLOBs(record);
    }

    @Override
    public int updateByPrimaryKey(OrderItem record) {
        return this.orderItemMapper.updateByPrimaryKey(record);
    }
    // getters, setters

    // constructors
}
